{include 'admin/layout/header_list'}
<link rel="stylesheet" href="__ADMIN_STATIC__/css/plugin.css?random={extendSetting('random')}">
<div class="ltcms_container">
    <div class="container_title">
        <form action="{LTCMS_ROUTE_PREFIX}/adPosition/index" method="get" class="ltcms_search">
            <input name="index" type="text" placeholder="请输入位置" {if isset($request['index'])} value="{$request['index']}" {/if} >
            <input name="name" type="text" placeholder="请输入广告位名称" {if isset($request['name'])} value="{$request['name']}" {/if} >
            <button type="submit" class="btn3">搜索</button>
        </form>
    </div>
    <section class="ltcms_content">
        <div class="ltcms_list">
            <table class="list_table">
                <col width="40px">
                <col width="50px">
                <col>
                <col width="120px">
                <col width="70px">
                <col width="90px">
                <col width="70px">
                <col width="100px">
                <tr>
                    <td class="th"><input id="selectAll" type="checkbox"></td>
                    <td class="th">id</td>
                    <td class="th">名称</td>
                    <td class="th">位置</td>
                    <td class="th">状态</td>
                    <td class="th">显示方式</td>
                    <td class="th">宽高</td>
                    <td class="th">操作</td>
                </tr>
                {if $rowData}
                {foreach $rowData["data"] $key $val}
                <tr class="tr">
                    <td><input class="checkbox" name="check_id" type="checkbox" value="{$val['id']}"></td>
                    <td>{$val["id"]}</td>
                    <td>{$val["name"]}</td>
                    <td>{$val["index"]}</td>
                    <td>{$val["statusFormat"]}</td>
                    <td>{$val["fashionFormat"]}</td>
                    <td>{$val["width"]}x{$val["height"]}</td>
                    <td>
                        <div class="btn4">
                            <a href="{LTCMS_ROUTE_PREFIX}/adPosition/edit?id={$val['id']}">
                                <i title="编辑" class="btn4-img iconfont icon-bianji"></i>
                            </a>
                            <i onClick="runApi(this)" title="删除" data-close="4" data-submit-url="{LTCMS_ROUTE_PREFIX}/adPosition?id={$val['id']}" data-method="delete" alt="" class="btn4-img del iconfont icon-delete"></i>
                        </div>
                    </td>
                </tr>
                {/foreach}
                {/if}
            </table>
        </div>
    </section>
    <div class="list-bottom">
        <div class="bottom-left">
            <a href="{LTCMS_ROUTE_PREFIX}/adPosition/create"><button class="btn2 trash">添加</button></a>
            <button class="btn2 del1" onclick="dataMoreDel(this)" data-close="3" data-submit-url="{LTCMS_ROUTE_PREFIX}/adPosition?id=" data-method="delete">彻底删除</button>
        </div>
        <div class="pages">
            {if $rowData}
            {php echo app("P_page")->getPageBarV2($rowData);}
            {/if}
        </div>
    </div>
</div>
<script src="__ADMIN_STATIC__/js/list.js?random={extendSetting('random')}"></script>
{include 'admin/layout/footer'}